package com.tony;

public class Son extends Parent {
    public static int b =33;
    {
        b++;
        System.out.println("son 代码块！:"+b);
    }
    static{
        b++;
        System.out.println("son 静态代码块:"+b);
    }
    public Son(){
        b++;
        System.out.println("son 构造方法!:"+b);
    }

    @Override
    protected void finalize() throws Throwable {
        b=b*10;
        System.out.println("son finalized"+b);
    }

    public static void main(String[] args) {
        Son son = new Son();
        System.gc();
    }
}
